package com.wqd.apis.wemedia;

import com.wqd.model.common.dtos.ResponseResult;
import com.wqd.model.wemedia.pojos.WmChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    /**
     * 远程调用接口,用来获取频道列表
     * @return
     */
    @GetMapping("/api/v1/channel/channels")
    ResponseResult<List<WmChannel>> getChannels();

}
